/*
 * Alloy Analyzer
 * Copyright (c) 2002 Massachusetts Institute of Technology
 *
 * The Alloy Analyzer is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * The Alloy Analyzer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with the Alloy Analyzer; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package alloy.type;

import alloy.ast.SigExpr;

/**
 * A stub implementation of {@link BasicType} -- does not do anything, but stores
 * the name of a type.  A {@link RelationType} can be constructed out of
 * {@link BasicTypeStub}s.
 */
public abstract class BasicTypeStub implements BasicType {
    public final String name;
    public final int scope;

    public BasicTypeStub(String name_, int scope_ ) { name = name_; scope = scope_; }
    public String toString() { return name; }
    public String toShortString() { return name; }
    public SigExpr toSigExpr() { return null; }
    public int getScope() { return scope; }
    public String getAtomName(int atom_) { return null; }
    public boolean isTrueBasicType() { return false; }
    public int compareTo(Object obj_) {
	if (true) throw new Error("unimplemented");
	return 0;
    }
    /* (non-Javadoc)
     * @see alloy.type.BasicType#isSubtypeOf(alloy.type.BasicType)
     */
    public boolean isSubtypeOf(BasicType other) {
        // TODO Auto-generated method stub
        return false;
    }
    /* (non-Javadoc)
     * @see alloy.type.BasicType#intersect(alloy.type.BasicType)
     */
    public BasicType intersect(BasicType other) {
        // TODO Auto-generated method stub
        return null;
    }
    /* (non-Javadoc)
     * @see alloy.type.BasicType#isEmpty()
     */
    public boolean isEmpty() {
        // TODO Auto-generated method stub
        return false;
    }
}

